home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 January / macformat-020.iso / Shareware City / Developers / Synthesizer Source / Synthesizer Folder / SampleTestPlay.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-01  |  1.2 KB  |  50 lines  |  [TEXT/KAHL]

  1. /* SampleTestPlay.h */
  2.  
  3. #ifndef Included_SampleTestPlay_h
  4. #define Included_SampleTestPlay_h
  5.  
  6. /* SampleTestPlay module depends on */
  7. /* MiscInfo.h */
  8. /* Audit */
  9. /* Debug */
  10. /* Definitions */
  11. /* SoundOutput */
  12. /* Memory */
  13. /* SampleWindow */
  14. /* SampleConsts */
  15.  
  16. /* forward declarations */
  17. struct SampleWindowRec;
  18.  
  19. /* determine if one is in progress */
  20. MyBoolean                    SampleTestPlayInProgress(void);
  21.  
  22. /* determine if the sample is finished & we just need to clean up */
  23. MyBoolean                    SampleTestIsWaitingForCleanup(void);
  24.  
  25. /* call back which does all the work.  When sample is finished playing, it */
  26. /* will clean itself up and SampleTestPlayInProgress will return False. */
  27. void                            SampleTestPlayCallback(struct SampleWindowRec* TheWindow,
  28.                                         MyBoolean IgnoreMe);
  29.  
  30. /* find out if it is still playing the sample loop */
  31. MyBoolean                    SampleTestIsItLooping(void);
  32.  
  33. /* tell the thing to stop looping */
  34. void                            SampleTestBreakLoop(void);
  35.  
  36. typedef enum
  37.     {
  38.         eSampleTestNoError EXECUTE(= -18115),
  39.         eSampleTestNoSample,
  40.         eSampleTestCouldntOpenChannel
  41.     } SampleTestErrors;
  42.  
  43. /* see if an error occurred */
  44. SampleTestErrors    SampleTestDidErrorOccur(void);
  45.  
  46. /* clean up internal data structures */
  47. void                            SampleTestPlayCleanup(void);
  48.  
  49. #endif
  50.